﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Review
{
    class Brand
    {
        public string brand;

        public Brand(string brand)
        {
            this.brand = brand;
        }
        public virtual void run()
        {
            Console.WriteLine("我是{0}，我会跑",this.brand);
        }

    }

    class BatCar : Brand, IFly
    {
        public BatCar(string brand) : base(brand)
        {
            this.brand = brand;
        }
        public void fly()
        {
            Console.WriteLine("我能飞!");
        }
    }
}
